Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.poll.core.life.cycles--lifecycle

This contribution is part of XML component org.nuxeo.ecm.poll.core.life.cycles inside nuxeo-poll-core-5.8.jar

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="project" name="pollLifeCycle">
          <transitions>
            <transition destinationState="open" name="open">
              <description>Open the poll</description>
            </transition>
            <transition destinationState="closed" name="close">
              <description>Close the open poll</description>
            </transition>
            <transition destinationState="deleted" name="delete">
              <description>Move the poll to trash (temporary delete)</description>
            </transition>
            <transition destinationState="project" name="undelete">
              <description>Recover the poll from trash</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" initial="true" name="project">
              <transitions>
                <transition>delete</transition>
                <transition>open</transition>
              </transitions>
            </state>
            <state description="Poll is open" name="open">
              <transitions>
                <transition>close</transition>
              </transitions>
            </state>
            <state description="Poll is closed" name="closed">
              <transitions>
                <transition>delete</transition>
              </transitions>
            </state>
            <state description="Poll is deleted" name="deleted">
              <transitions>
                <transition>undelete</transition>
              </transitions>
            </state>
          </states>
        </lifecycle>

    Recover the poll from trash

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="project" name="pollLifeCycle">
      <transitions>
        <transition destinationState="open" name="open">
          <description>Open the poll</description>
        </transition>
        <transition destinationState="closed" name="close">
          <description>Close the open poll</description>
        </transition>
        <transition destinationState="deleted" name="delete">
          <description>Move the poll to trash (temporary delete)</description>
        </transition>
        <transition destinationState="project" name="undelete">
          <description>Recover the poll from trash</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" initial="true" name="project">
          <transitions>
            <transition>delete</transition>
            <transition>open</transition>
          </transitions>
        </state>
        <state description="Poll is open" name="open">
          <transitions>
            <transition>close</transition>
          </transitions>
        </state>
        <state description="Poll is closed" name="closed">
          <transitions>
            <transition>delete</transition>
          </transitions>
        </state>
        <state description="Poll is deleted" name="deleted">
          <transitions>
            <transition>undelete</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>
  </extension>